<?php
//初始化文件
include '../../init.php';
//数据库文件
include DIR_CORE.'mysql.php';
//接受题目id
$id = $_GET['id'];

//删除题目
$sql = "delete from user where id ='$id'";

$res = mysqli_query($link,$sql);
if($res){
	echo '<span style="color:green;">删除成功</span>';
}else{
	echo '<span style="color:red;">删除失败</span>';
}